package com.mapper;

import com.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {


    /**
     * 通过username在tb_user查找对应的user对象
     * @return User
     */
    User selectByUsername(String username);


    /**
     * 通过username和password在tb_user查找对应的user对象
     * @param username
     * @param password
     * @return
     */
    User select(@Param("username") String username, @Param("password") String password);
}
